<?php 
$linkImg = FILES_URL.'/users/img45x45/' ;
$linkViewInfoUser = $this->baseUrl('frontend/user/index/id/');
$linkImg2 = FILES_URL.'/developer/imgs/img20x20/' ;

?>
<div class="bangvang" id="bangvang">
	<div class="title-bangvang">BẢNG VÀNG</div>
</div>
<ul id="bangvang-ul">
	<?php foreach($this->topScore as $key=>$value){?>
	<li><?php if(!empty($value['user_avatar'])){?> <img alt=""
		src="<?php echo $linkImg.$value['user_avatar']?>"
		style="margin-left: 10px"> <?php }else{?> <img alt=""
		src="<?php echo $linkImg.'no-img.png'?>" style="margin-left: 10px"> <?php }?>
		<a href="<?php echo $linkViewInfoUser.$value['id'].'/ranking/'.$key?>"
		style="margin: 5px; position: relative; top: -30px;"><?php echo $value['user_name']?>
	</a>
		<div style="position: relative; left: 60px; top: -20px">
			<?php echo $value['score']?>
		</div>
	</li>
	<?php } ?>
</ul>


<div class="clear"></div>
<div class="bottom-bangvang"></div>

<br>


<div class="title" id="topdownload">TOP DOWNLOAD</div>
<ul id="topdownload-ul">
	<?php foreach($this->topDownload as $key=>$value) {?>
	<li><img src="<?php echo $linkImg2.$value['link_img'] ?>" /> <a ><?php echo $value['name_app']?>
	</a></li>
	<?php } ?>
</ul>
<hr />
<br>
